let path = process.env.NODE_ENV === 'development' ? '/' : '/distDocs/'
module.exports = {
  title: '-',
  description: '基于element ui 二次开的组件',
  base: path,
  mode: 'hash',
  // // 设置 favicon.ico，注意图片放在 public 文件夹下
  head: [['link', { rel: 'icon', href: 'favicon.ico' }]],
  configureWebpack: {
    resolve: {
      alias: {
        '@alias': './assets/',
        '@p': '../../../packages/',
        '@c': './components/',
      },
    },
  },
  dest: 'elementui',
  plugins: [
    'demo-container',
    '@vuepress-reco/extract-code',
    [
      'vuepress-plugin-auto-sidebar',
      {
        titleMap: {
          'exampleSubMenu1-a': '🎉 Hello Vuepress 🎉',
          titleMode: 'default',
        },
      },
    ],
  ],
  themeConfig: {
    logo: '/logo.png',
    nav: [
      { text: '首页', link: '/' },
      { text: '组件', link: '/component/' },
    ],
    sidebarDepth: 3,
  },
}
